// Author: Domien Nowicki

#ifndef DEFAULTTEXTUREWIDGET_H
#define DEFAULTTEXTUREWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QFrame>
#include <QGridLayout>
#include <QLabel>
#include <QGroupBox>
#include <QPixmap>
#include <QSpacerItem>

class DefaultTextureWidget: public QWidget
{
	Q_OBJECT

public:
	enum DefaultTexture
	{
		DEFAULT = 0,
		FLOOR = 1,
		CEILING = 2
	};

	DefaultTextureWidget(QWidget *parent=0);
	virtual ~DefaultTextureWidget();
	
	void SetDefaultTexture(DefaultTexture index, const QPixmap& thumb);

protected:

signals:
	void changeTexture(DefaultTextureWidget::DefaultTexture texture);
private slots:
	void slotChangeDefaultTexture();
	void slotChangeFloorTexture();
	void slotChangeCeilingTexture();
private:


	void SetupWidget();
	QPushButton* SetupDefaultTexture(DefaultTexture index, const char* caption);

    QHBoxLayout *hboxLayout;

    QGroupBox *defaultTextureBox[3];
    QVBoxLayout *vboxDefaultTextureLayout[3];
    QLabel *defaultTextureLabel[3];
    QPushButton *defaultTextureButton[3];
	QSpacerItem *spacerItem;

};

#endif //DEFAULTTEXTUREWIDGET_H

